/**
 * Audit frontend framework Util
 * usage: Util.extend() ...
 */

(function () {
    if (!jQuery && !$) {
        $ = jQuery = require('jquery');
    }
    var bindObject = {
        extend: function (originObject, extendProp) {
            if ($ || jQuery) {
                return $.extend(originObject, extendProp);
            } else {
                // other
            }
        },

        cloneObject: function (originObject) {
            var seriString = JSON.stringify(originObject);
            return JSON.parse(seriString);
        },

        prefix: "audit"
    };

    bindObject.PREFIX = bindObject.prefix;

    (function (scope) {
        scope.Util = bindObject;
    })(window);

    module.exports = bindObject;
})();